/*
 *  vmtest.c
 *  
 *
 *  Created by Rayvionne French on 7/12/11.
 *  Copyright 2011 __MyCompanyName__. All rights reserved.
 *
 */

#include "syscall.h"

#define SIZE 300

int A[SIZE];
int B[SIZE];
int C[SIZE];

int main() {
	int i, j, k;
	
	Write("A[] = ", 6, ConsoleOutput);
	for(i=0; i<SIZE; i++) {
		A[i] = i;
		SWrite("TEST[%d] ", 10, A[i], 1);
	}
	Write("\n", 1, ConsoleOutput);
	
	Write("A[] = ", 6, ConsoleOutput);
	for(i=0; i<SIZE; i++) {
		A[i] = A[i]+1;
		SWrite("[%d] ", 6, A[i], 1);
	}
	Write("\n", 1, ConsoleOutput);
	
	Write("B[] = ", 6, ConsoleOutput);
	for(i=0; i<SIZE; i++) {
		B[i] = (i+1)*2;
		SWrite("[%d] ", 6, B[i], 1);
	}
	Write("\n", 1, ConsoleOutput);
	
	Write("C[] = ", 6, ConsoleOutput);
	for(i=0; i<SIZE; i++) {
		C[i] = B[i]-A[i];
		SWrite("[%d] ", 6, C[i], 1);
	}
	Write("\n", 1, ConsoleOutput);
	
	

	Exit(A[SIZE-1]);
}